File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed
sumo/static/sumo/scss/layout Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 74
74
width : 100% ;
75
75
max-width : none ;
76
76
margin : 0 0 p .$spacing-md 0 ;
77
+
78
+ & [type = " checkbox" ] {
79
+ width : auto ;
80
+ margin-right : p .$spacing-md ;
81
+ margin-left : p .$spacing-xs ;
82
+ }
77
83
}
78
84
79
85
img {
86
92
select ,
87
93
input {
88
94
margin : 0 10px ;
89
-
90
95
}
91
96
}
92
97
}
@@ -263,4 +268,4 @@ ol.headings-list {
263
268
}
264
269
}
265
270
}
266
- }
271
+ }
Original file line number Diff line number Diff line change @@ -426,5 +426,6 @@ class RevisionFilterForm(forms.Form):
426
426
427
427
locale = forms .ChoiceField (label = _lazy ("Locale:" ), choices = languages , required = False )
428
428
users = MultiUsernameFilterField (label = _lazy ("Users:" ), required = False )
429
+ include_bots = forms .BooleanField (label = _lazy ("Bots:" ), required = False )
429
430
start = forms .DateField (label = _lazy ("Start:" ), required = False )
430
431
end = forms .DateField (label = _lazy ("End:" ), required = False )
Original file line number Diff line number Diff line change 39
39
smart_int ,
40
40
truncated_json_dumps ,
41
41
)
42
+ from kitsune .users .models import Profile
42
43
from kitsune .wiki .config import (
43
44
CATEGORIES ,
44
45
COLLAPSIBLE_DOCUMENTS ,
@@ -1706,6 +1707,9 @@ def _show_revision_warning(document, revision):
1706
1707
def recent_revisions (request ):
1707
1708
request .GET = request .GET .copy ()
1708
1709
fragment = request .GET .pop ("fragment" , None )
1710
+ if not fragment :
1711
+ request .GET .setdefault ("include_bots" , "on" )
1712
+
1709
1713
form = RevisionFilterForm (request .GET )
1710
1714
1711
1715
# Validate the form to populate cleaned_data, even with invalid usernames.
@@ -1720,6 +1724,9 @@ def recent_revisions(request):
1720
1724
if form .cleaned_data .get ("users" ):
1721
1725
filters .update (creator__in = form .cleaned_data ["users" ])
1722
1726
1727
+ if not form .cleaned_data .get ("include_bots" ):
1728
+ filters .update (creator__profile__account_type = Profile .AccountType .REGULAR )
1729
+
1723
1730
start = form .cleaned_data .get ("start" )
1724
1731
end = form .cleaned_data .get ("end" )
1725
1732
if start or end :
You can’t perform that action at this time.
0 commit comments